<?php
/**
 *  $Id$
 *
 
 *
 */
function smarty_function_pc_form_nav_open($args=array())
{	
	extract($args); unset($args);
	$viewtype = strtolower(pnVarCleanFromInput('viewtype'));
	if(_SETTING_OPEN_NEW_WINDOW && $viewtype == 'details') {
		$target = 'target="csCalendar"';
	} else {
		$target = '';
	}
	
	$fstart = '<form action="'.pnModURL(__POSTCALENDAR__,'user','view').'"'
			. ' method="post"'
			. ' enctype="application/x-www-form-urlencoded" '.$target.'>';
			
	echo $fstart;
}
?>
